Editing Tracks
The Movie Toolbox provides a number of functions that allow your application to perform editing operations on tracks. These functions work with track segments--pieces of a track that are defined by a starting time and duration--and therefore give you a great deal of control over the editing process. These functions are similar to the low-level editing functions for movies that were described earlier in this chapter. However, these functions may copy movie data, if required by the operation.When you edit a track you may change the duration of the movie that contains that track.
The
CopyTrackSettings
function lets you copy certain important settings from one track to another.You can use the
InsertTrackSegment
function to copy a segment from one track to another. TheInsertTrackEmptySegment
function allows you to insert an empty segment into a track.You can use the
InsertMediaIntoTrack
function to insert a media into a track.Your application can delete a segment from a track by calling the
DeleteTrackSegment
function.You can change a segment's duration by calling the
ScaleTrackSegment
function. This function stretches or shrinks the segment to accommodate a specified duration.You can use the
GetTrackEditRate
function to determine the rate of the track edit of a specified track at an indicated time.
Subtopics
- InsertTrackSegment
- InsertEmptyTrackSegment
- InsertMediaIntoTrack
- DeleteTrackSegment
- ScaleTrackSegment
- CopyTrackSettings
- GetTrackEditRate